/* 详情页专用样式 */
.product-tabs {
  margin-top: 40px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #eaeaea;
}

.tab {
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab.active {
  color: #9c27b0;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #9c27b0;
}

.tab-content {
  padding: 30px;
}

.tab-pane {
  animation: fadeIn 0.3s ease;
}

.product-introduction h3,
.specifications h3,
.reviews-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.introduction-content {
  line-height: 1.8;
  color: #555;
}

.introduction-content p {
  margin-bottom: 20px;
  white-space: pre-line;
}

.product-images {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:nth-child(odd) {
  background-color: #f8f9fa;
}

.specs-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eaeaea;
}

.spec-name {
  width: 30%;
  font-weight: 500;
  color: #333;
}

.spec-value {
  color: #666;
}

.review-summary {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

.rating-average {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 30px;
  border-right: 1px solid #eaeaea;
}

.big-rating {
  font-size: 36px;
  font-weight: 700;
  color: #ffb400;
  margin-bottom: 5px;
}

.rating-stars {
  color: #ffb400;
  font-size: 18px;
  margin-bottom: 5px;
}

.rating-count {
  color: #999;
  font-size: 14px;
}

.rating-distribution {
  flex: 1;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.rating-label {
  width: 40px;
  font-size: 14px;
  color: #666;
}

.progress-bar {
  flex: 1;
  height: 10px;
  background-color: #eaeaea;
  border-radius: 5px;
  margin: 0 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #ffb400;
  border-radius: 5px;
}

.rating-percent {
  width: 40px;
  font-size: 14px;
  color: #666;
  text-align: right;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.review-images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.review-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-image:hover {
  transform: scale(1.05);
}

.star {
  color: #ddd;
}

.star.filled {
  color: #ffb400;
}

/* 相关推荐部分 */
.related-products {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .review-summary {
    flex-direction: column;
  }
  
  .rating-average {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
  }
  
  .rating-distribution {
    padding-left: 0;
  }
  
  .tab {
    padding: 10px 15px;
    font-size: 14px;
  }
} 